package com.gaussian.property.admin.module.biz.vo.message;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @description:
 * @author: songqi(13776346982)
 * @date: 2024/4/19 16:01
 */
@Data
@ApiModel("创建留言表单")
public class MessageForm {

    @ApiModelProperty("项目id列表")
    @NotEmpty(message = "项目id列表不能为空")
    private List<String> projectIdList;

    @ApiModelProperty("留言内容")
    @NotBlank(message = "留言内容不能为空")
    @Size(max = 255, message = "留言内容不能超过255个字符")
    private String content;
}
